#ifndef _MY_NPC_6_H_
#define _MY_NPC_6_H_

#include "../enemy.h"
#include "path.h"

namespace fireplane
{
	class Path;
	class Gun;

	class NPC6 : public Enemy{
	public:
		NPC6(EnemyType type);
		~NPC6();

	public:
		virtual bool updateState(float dt);
		virtual void onInit(CreateArg* arg);
		virtual void destroy();
		virtual void onAttack();
		virtual void onCollision2Player();

		void _onAttack(int addHp);
	private:
		CCSprite* _sprite;
	
		bool _is_attak;
		float _attack_back_time;
		int _total_step;
		int _cur_step;
		CCPoint _next_pos;
		float _speed;

		Gun* _middleGun;
		Gun* _leftGun[2];
		Gun* _rightGun[2];
		float _fire_tick;
		bool _is_need_fire_middle;
		bool _is_fire_ji_guang;

		int bulet_cnt;

		int _fire_step;

		float _fire_tick_left_right;
		bool _is_need_fire_left_right;
		int bulet_cnt_left_right;

		float _fire_middle_gun_tick;

		bool _is_deading;
	};
}

#endif